<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="generator" content="ApiGen 2.5.0" />

	<title>Class tjsd\system\enviroment\ClassLoader</title>

	<script type="text/javascript" src="resources/combined.js?2300626518"></script>
	<script type="text/javascript" src="elementlist.js?712723931"></script>
	<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?1252480456" />

</head>

<body>
<div id="left">
	<div id="menu">
		<a href="index.html" title="Overview"><span>Overview</span></a>

		<div id="groups">
			<h3>Namespaces</h3>
			<ul>
				<li><a href="namespace-PHP.html">PHP</a>
						</li>
				<li class="active"><a href="namespace-tjsd.html">tjsd</a>
						<span></span>
						<ul>
				<li><a href="namespace-tjsd.cache.html">cache</a>
						</li>
				<li><a href="namespace-tjsd.controllers.html">controllers</a>
						</li>
				<li><a href="namespace-tjsd.core.html">core</a>
						</li>
				<li><a href="namespace-tjsd.debug.html">debug</a>
						<span></span>
						<ul>
				<li><a href="namespace-tjsd.debug.handlers.html">handlers</a>
						</li>
							</ul></li>
				<li><a href="namespace-tjsd.exceptions.html">exceptions</a>
						</li>
				<li><a href="namespace-tjsd.mappers.html">mappers</a>
						</li>
				<li class="active"><a href="namespace-tjsd.system.html">system</a>
						<span></span>
						<ul>
				<li><a href="namespace-tjsd.system.di.html">di</a>
						</li>
				<li class="active"><a href="namespace-tjsd.system.enviroment.html">enviroment</a>
						</li>
							</ul></li>
				<li><a href="namespace-tjsd.view.html">view</a>
						</li>
							</ul></li>
			</ul>
		</div>

		<hr />

		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li class="active"><a href="class-tjsd.system.enviroment.ClassLoader.html">ClassLoader</a></li>
			</ul>





		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
<div id="rightInner">
	<form id="search">
		<input type="hidden" name="cx" value="" />
		<input type="hidden" name="ie" value="UTF-8" />
		<input type="text" name="q" class="text" />
		<input type="submit" value="Search" />
	</form>

	<div id="navigation">
		<ul>
			<li>
				<a href="index.html" title="Overview"><span>Overview</span></a>
			</li>
			<li>
				<a href="namespace-tjsd.system.enviroment.html" title="Summary of tjsd\system\enviroment"><span>Namespace</span></a>
			</li>
			<li class="active">
<span>Class</span>			</li>
		</ul>
		<ul>
			<li>
				<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
			</li>
		</ul>
		<ul>
		</ul>
	</div>

<div id="content" class="class">
	<h1>Class ClassLoader</h1>

	<div class="description">
	
<p>Class is responsible for autoloading classes.</p>

<p>ClassLoader itself doesn't look for class files, it uses objects of
\tjsd\mappers\Index to locate class files.</p>

<p>You may use as many Indexes you want. When first index doesn't find location
of file, next one is used etc.</p>

	</div>

	<dl class="tree">
		<dd style="padding-left:0px">
			<a href="class-tjsd.core.Object.html">tjsd\core\Object</a>
			
			
			
		</dd>
		<dd style="padding-left:30px">
			<img src="resources/inherit.png" alt="Extended by" />
<b>tjsd\system\enviroment\ClassLoader</b>			
			
			
		</dd>
	</dl>







	<div class="info">
		<b>Final</b><br />
		
		<b>Namespace:</b> <a href="namespace-tjsd.html">tjsd</a>\<a href="namespace-tjsd.system.html">system</a>\<a href="namespace-tjsd.system.enviroment.html">enviroment</a><br />

				<b>Copyright:</b>
				2012<br />
				<b>Author:</b>
				Jakub Tesárek &lt;<a
href="mailto:info&#64;tjsd.cz">info&#64;<!---->tjsd.cz</a>&gt;<br />
				<b>Version:</b>
				1.0<br />
		<b>Located at</b> <a href="source-class-tjsd.system.enviroment.ClassLoader.html#4" title="Go to source code">tjsd/system/enviroment/ClassLoader.php</a><br />
	</div>


	<table class="summary" id="methods">
	<caption>Methods summary</caption>
	<tr data-order="__construct" id="___construct">

		<td class="attributes"><code>
			
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#___construct">#</a>
		<code><a href="source-class-tjsd.system.enviroment.ClassLoader.html#31" title="Go to source code">__construct</a>( <span><a href="class-tjsd.mappers.Index.html">tjsd\mappers\Index</a> <var>$index</var> = <span class="php-keyword1">null</span></span> )</code>

		<div class="description short">
			
<p>Creates new ClassLoader.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Creates new ClassLoader.</p>

<p>Class loader isn't registered via spl_autoload_register yet.</p>

<p>You may assign initial Index as parameter.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$index</var></dt>
					<dd><code><code><a href="class-tjsd.mappers.Index.html">tjsd\mappers\Index</a></code></code><br> initial index</dd>
				</dl></div>



				<h4>See</h4>
				<div class="list">
						<code><code><a href="class-tjsd.system.enviroment.ClassLoader.html#_register">tjsd\system\enviroment\ClassLoader::register()</a></code></code><br />
				</div>

		</div>
		</div></td>
	</tr>
	<tr data-order="addClassIndex" id="_addClassIndex">

		<td class="attributes"><code>
			
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_addClassIndex">#</a>
		<code><a href="source-class-tjsd.system.enviroment.ClassLoader.html#48" title="Go to source code">addClassIndex</a>( <span><a href="class-tjsd.mappers.Index.html">tjsd\mappers\Index</a> <var>$index</var></span> )</code>

		<div class="description short">
			
<p>Adds new index to the end of indexes used to find class files</p>

		</div>

		<div class="description detailed hidden">
			
<p>Adds new index to the end of indexes used to find class files</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$index</var></dt>
					<dd><code><code><a href="class-tjsd.mappers.Index.html">tjsd\mappers\Index</a></code></code><br> new index to be used</dd>
				</dl></div>




		</div>
		</div></td>
	</tr>
	<tr data-order="loadClass" id="_loadClass">

		<td class="attributes"><code>
			
			 public 
			boolean
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_loadClass">#</a>
		<code><a href="source-class-tjsd.system.enviroment.ClassLoader.html#57" title="Go to source code">loadClass</a>( <span>string <var>$className</var></span> )</code>

		<div class="description short">
			
<p>Tries to find and include class file containing required class</p>

		</div>

		<div class="description detailed hidden">
			
<p>Tries to find and include class file containing required class</p>

<p>This method can be used without registering ClassLoader as autoloader.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$className</var></dt>
					<dd><code>string</code><br> class name including namespaces</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>boolean</code><br>returns true if class file was found and included<br />
				</div>


				<h4>See</h4>
				<div class="list">
						<code><code><a href="class-tjsd.system.enviroment.ClassLoader.html#_register">tjsd\system\enviroment\ClassLoader::register()</a></code></code><br />
				</div>

		</div>
		</div></td>
	</tr>
	<tr data-order="register" id="_register">

		<td class="attributes"><code>
			
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_register">#</a>
		<code><a href="source-class-tjsd.system.enviroment.ClassLoader.html#85" title="Go to source code">register</a>( <span>boolean <var>$prepand</var> = <span class="php-keyword1">false</span></span> )</code>

		<div class="description short">
			
<p>Register autoloader to be called whenever undefined class is needed.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Register autoloader to be called whenever undefined class is needed.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$prepand</var></dt>
					<dd><code>boolean</code><br> if true, this autoloader will be used as firt in stack of all autoloader, as
last otherwise</dd>
				</dl></div>




		</div>
		</div></td>
	</tr>
	</table>

	<table class="summary inherited">
	<caption>Methods inherited from <a href="class-tjsd.core.Object.html#methods">tjsd\core\Object</a></caption>
	<tr>
		<td><code>
<a href="class-tjsd.core.Object.html#___call">__call()</a>, 
<a href="class-tjsd.core.Object.html#___callStatic">__callStatic()</a>, 
<a href="class-tjsd.core.Object.html#___get">__get()</a>, 
<a href="class-tjsd.core.Object.html#___isset">__isset()</a>, 
<a href="class-tjsd.core.Object.html#___set">__set()</a>
		</code></td>
	</tr>
	</table>



	<table class="summary" id="constants">
	<caption>Constants summary</caption>
	<tr data-order="NAMESPACE_SEPARATOR" id="NAMESPACE_SEPARATOR">

		<td class="attributes"><code>
			
			string
		</code></td>
		<td class="name"><code>
				<a href="source-class-tjsd.system.enviroment.ClassLoader.html#19" title="Go to source code"><b>NAMESPACE_SEPARATOR</b></a>
		</code></td>
		<td class="value"><code><span class="php-quote">'\\'</span></code></td>
		<td class="description"><div>
			<a href="#NAMESPACE_SEPARATOR" class="anchor">#</a>

			<div class="description short">
				
<p>Separator of namespaces</p>

			</div>

			<div class="description detailed hidden">
				
<p>Separator of namespaces</p>


			</div>
		</div></td>
	</tr>
	</table>





</div>

	<div id="footer">
		 API documentation generated by <a href="http://apigen.org">ApiGen 2.5.0</a>
	</div>
</div>
</div>
</body>
</html>
